@import './variables.scss';

#app:before {
    content: "";
    display: table;
}

.clearfix {
    zoom: 1;

    /*为IE6，7的兼容性设置*/
    &:after {
        clear: both;
    }

    &:after,
    &:before {
        content: "";
        display: table;
    }
}

.left {
    float: left;
}

.right {
    float: right;
}

.ne-title {
    margin-bottom: .1rem;
    line-height: .36rem;
    border-bottom: 1px solid #eeeeee;

    p {
        font-size: $fontSize_v3;
        font-weight: 600;
        color: #333;
        //padding-bottom: 10px;
    }
}

.flex {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    display: -moz-flex;
    //display: box;
    -moz-box-pack: justify;
    -webkit-box-pack: justify;
    box-pack: justify;
    -moz-box-align: center;
    -webkit-box-align: center;
    box-align: center;
    -moz-align-items: center;
    align-items: center;
    -webkit-align-items: center;
}

.flex-column {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    display: -moz-flex;
    //display: box;
    -moz-box-pack: justify;
    -webkit-box-pack: justify;
    box-pack: justify;
    -webkit-box-orient: vertical;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    position: relative;
}

.flex-jian {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    display: -moz-flex;
    //display: box;
    text-align: center;
}

.flex-between {
    -moz-justify-content: space-between;
    justify-content: space-between;
    -webkit-justify-content: space-between;
}

.flex-center {
    -moz-box-align: center;
    -webkit-box-align: center;
    box-align: center;
    -moz-align-items: center;
    align-items: center;
    -webkit-align-items: center;
    -webkit-box-pack: center;
    -moz-justify-content: center;
    -webkit-justify-content: center;
    justify-content: center;
}

::-webkit-scrollbar {
    width: .05rem;
    height: .15rem;
}

::-webkit-scrollbar-track {
    background-color: transparent;
}


/* 滚动条的滑轨背景颜色 */

::-webkit-scrollbar-thumb {
    background-color: #c7c7c7;
}


/* 滑块颜色 */

::-webkit-scrollbar-button {
    background-color: transparent;
}


/* 滑轨两头的监听按钮颜色 */

::-webkit-scrollbar-corner {
    background-color: transparent;
}


/* 横向滚动条和纵向滚动条相交处尖角的颜色 */

.ne-red {
    color: $red;
}

input::placeholder {
    font-size: $fontSize_base !important;
}

.ne-line {

    .el-form-item__content {
        height: .34rem;
        @extend %flex-jian;
    }

    .ne-select-s {
        margin-right: .10rem;

        input {
            //padding-left: 0;
        }
    }

    .ne-select-s:last-child {
        margin-right: 0;
    }
}

.ne-input-s {
    width: .34rem;
    margin-right: .15rem;

    input {
        padding: 0;
        text-align: center;
    }
}

.column-center {
    @extend %flex-jian;
    box-align: center;
    -moz-align-items: center;
    align-items: center;
    -webkit-align-items: center;
    -webkit-box-pack: center;
}

.ne-dolt {
    //width: 30px;
    text-align: center;
    font-weight: 600;
    line-height: .30rem;
    width: .40rem;
    height: .30rem;
    border: none;
    background-color: #f6f6f7;
    font-size: .10rem;
    border-radius: 0 .03rem .03rem 0 !important;
    color: #666;
    position: absolute;
    top: .04rem;
    right: .01rem;
}

.ne-relative {
    position: relative;
}

.ne-bg {
    position: absolute;
    border-color: $orange;
    border-style: solid;
    width: 1rem;
    height: 1rem;

    &.ne-bg-top {
        top: -.02rem;
        left: -.02rem;
        border-width: .03rem 0 0 .03rem;
        border-radius: .02rem 0 0 0;
    }

    &.ne-bg-bottom {
        bottom: -.02rem;
        right: -.02rem;
        border-width: 0 .03rem .03rem 0;
        border-radius: 0 0 .02rem 0;
    }
}

.ne-jiaduan {
    .ne-bg {
        border-color: #7dc855;
    }
}

.ne-yiduan {
    .ne-bg {
        border-color: $orange;
    }
}

.ne-border-bold {
    border-radius: .02rem;
    border: .02rem solid $grayColor3;
}

.ne-padding-t-20 {
    padding-top: .2rem;
    box-sizing: border-box;
}

.ne-padding-t-10 {
    padding-top: .1rem;
    box-sizing: border-box;
}

.ne-col2-gutter-15 {
    margin-bottom: .2rem;
    height: auto;

    &>div {
        height: 100%;
        width: calc(50% - .15rem);

        &:first-child {
            margin: 0 .15rem;
        }
    }
}

.ne-col2-gutter-8 {
    align-items: stretch;
    margin-bottom: .15rem;

    &>div {
        width: calc((100% - .3rem)/3);
        margin-right: .15rem;
        padding-right: .2rem;
        box-sizing: border-box;

        &:nth-child(3) {
            margin-right: 0;
        }

        &:nth-child(1) {
            .ne-bg {
                border-color: #7dc855;
            }
        }

        &:nth-child(2) {
            .ne-bg {
                border-color: $orange;
            }
        }

        &:nth-child(3) {
            .ne-bg {
                border-color: $blue;
            }
        }
    }
}

.ne-inen-title {
    padding: 0;
    margin: 0 .1rem .15rem 0;
    border-bottom: .01rem solid $grayColor3;

    span {
        padding-bottom: .15rem;
        margin-bottom: 0;
        display: inline-block;
        border-bottom: .03rem solid $orange;
        position: relative;
        top: .01rem;
    }
}

.mar-15 {
    margin-top: .15rem;
}

.mar-20 {
    margin-top: .15rem;
}

.text-right {
    text-align: right;
}

.blue {
    color: $blue;
}

.orange {
    color: $orange !important;
}

body,
p,
h1,
h2,
h3,
h4,
h5,
h6,
ul,
dl,
dd,
td,
input,
fieldset,
textarea,
option {
    margin: 0;
    padding: 0;
}

li {
    list-style: none;
}

a {
    text-decoration: none;
    color: #333;
}

img {
    border: none;
    vertical-align: top;
}

a,
input {
    outline: none;
}

h1,
h2,
h3,
h4,
h5,
h6,
b,
strong {
    font-weight: 100;
}

i,
em {
    font-style: normal;
}

/* 客户tabs   left样式  start*/
.m-tabs-box .tab-pannel a {
    padding: 20px 40px;
    border-left: 3px solid transparent;
    display: block;
    text-align: center;
    background-color: #f5f6f6;
    border: 1px solid rgba(221, 221, 221, 0.5);
}

.m-tabs-box .current {
    background-color: #ffffff;
}

.m-tabs-box .current a {
    border-left: 3px solid red;
    border-color: rgba(221, 221, 221, 0.5) transparent rgba(221, 221, 221, 0.5) rgba(221, 221, 221, 0.5);
    border-top-width: 1px;
    background-color: #ffffff;
    border-left: 3px solid $blue;
    margin: 0 -2px;
    -webkit-box-shadow: -2px 0 3px 0 rgba(221, 221, 221, 0.5) !important;
    box-shadow: -2px 0 3px 0 rgba(221, 221, 221, 0.5) !important;
    border-top: 1px solid rgba(221, 221, 221, 0.5);
}

.m-tabs-box {
    min-height: 500px;
    background-color: #ffffff;
    padding: 10px 20px;
}

.m-tabs-box .container {
    width: 100%;
}

.m-tabs-box .el-tabs__active-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background-color: $blue !important;
    z-index: 1;
    transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    list-style: none;
}

// .m-tabs-box .el-tabs__item.is-active {
//   color: #f56f3c !important;
// }
.m-tabs-box .el-tabs--left .el-tabs__active-bar.is-left,
.m-tabs-box .el-tabs--left .el-tabs__nav-wrap.is-left::after {
    left: 0 !important;
}

.m-tabs-box .el-tabs--left .el-tabs__item.is-left.is-active {
    background: #ffffff;
    border-right: none;
}

.m-tabs-box .el-tabs--left .el-tabs__item.is-left {
    border-left: 3px solid transparent;
    display: block;
    text-align: center;
    background-color: #f5f6f6;
    border: 1px solid rgba(221, 221, 221, 0.5);
}

.m-tabs-box .el-tabs--left .el-tabs__item.is-left {
    padding: 20px 40px;
    height: auto !important;
}

.m-tabs-box .el-tabs__item.is-top.el-tabs__active-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;

    z-index: 1;
    transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    list-style: none;
}

.m-tabs-box .el-tag .el-icon-close {
    color: #ffffff !important;
}

/* 客户tabs   left样式 end*/
.m-dialog .el-dialog__body {
    padding: 0 0.2rem;
}

.m-dialog .el-dialog__body .el-main {
    padding: 0 0.2rem 0.2rem;
}

.ne-bg-box {
    width: 100%;
    background-color: #fff;
    border-radius: 0.05rem;
    padding: 0.2rem 0;
    box-sizing: border-box;
    height: auto;
    margin: 0.2rem;
}

.ne-title-v2 {
    color: $textColor1;
    font-size: $fontSize_v3;
    padding-left: .12rem;
    position: relative;
    margin-bottom: .2rem;
    font-weight: 500;

    &:after {
        content: '';
        display: inline-block;
        width: .05rem;
        height: .15rem;
        border-radius: .01rem;
        background-color: $orange;
        position: absolute;
        left: 0;
        top: .03rem;
    }
}

.m-content-box {
    height: calc(100vh - .4rem);
    margin: 0.1rem 0;
    padding: 0.2rem 0.2rem;
    background-color: #fff;
    box-shadow: 0px 2px 9px 0px rgba(205, 212, 228, 0.75);
}

.whether .el-radio-button__inner {
    padding: 0 0.5rem;
}

//流程图样式
//高亮待处理样式
.highlight-todo.djs-shape .djs-visual> :nth-child(1) {
    fill: orange !important;
    stroke: red !important;
    stroke-dasharray: 4px !important;
    fill-opacity: 0.5 !important;
    animation: dash 10s linear infinite;
}

@keyframes dash {
    0% {
        stroke-dashoffset: 0;
    }

    100% {
        stroke-dashoffset: -360;
    }
}

//高亮样式
.highlight.djs-shape .djs-visual> :nth-child(1) {
    fill: green !important;
    fill-opacity: 0.6 !important;
    stroke: none !important;

}

.highlight.djs-connection>.djs-visual>path {
    stroke: #a8cdfd !important;
    stroke-width: 1.5px !important;
}

.djs-shape .djs-visual>rect {
    // fill: #0099a8 !important; //矩形框填充颜色
    // fill-opacity: 0.6 !important; //透明度
    // stroke: none !important; //去除黑色边框

}
.djs-shape .djs-visual>path:first-child {
    stroke: none !important; //去除黑色边框

}

//线上字体颜色
.djs-shape .djs-visual.djs-label {
    fill: black !important;
    ;

}

//连接线的颜色
.djs-connection>.djs-visual>path {
    stroke: #a8cdfd !important;
    stroke-width: 1.5px !important;
}

//箭头颜色
defs>marker>path {
    fill: #a8cdfd !important;
    stroke: #a8cdfd !important;
}

//网关样式修改
.exclusiveGateway.djs-shape .djs-visual> :nth-child(1) {
    fill: green !important;
    fill-opacity: 0.6 !important;
    stroke: none !important;

}

.exclusiveGateway.djs-shape .djs-visual>path {
    fill: white !important;
    //fill-opacity: 0.6!important;
    stroke: white !important;
    d: path('m 23,13 0,7.116788321167883 -5.018248175182482,-5.018248175182482 -3.102189781021898,3.102189781021898 5.018248175182482,5.018248175182482 -7.116788321167883,0 0,4.37956204379562 7.116788321167883,0  -5.018248175182482,5.018248175182482 l 3.102189781021898,3.102189781021898 5.018248175182482,-5.018248175182482 0,7.116788321167883 4.37956204379562,0 0,-7.116788321167883 5.018248175182482,5.018248175182482 3.102189781021898,-3.102189781021898 -5.018248175182482,-5.018248175182482 7.116788321167883,0 0,-4.37956204379562 -7.116788321167883,0 5.018248175182482,-5.018248175182482 -3.102189781021898,-3.102189781021898 -5.018248175182482,5.018248175182482 0,-7.116788321167883 -4.37956204379562,0 z') !important;

}

//结束样式修改
.endEvent.djs-shape .djs-visual> :nth-child(1) {
    fill: red !important;
    fill-opacity: 0.6 !important;
    stroke: none !important;

}

//自定义角标颜色-白色
.custom_icon_user_white {
    color: white;
}

//自定义角标颜色-红色
.custom_icon_user_red {
    color: red;
}

//自定义角标颜色-其它，自己按需增加

/*流程图弹窗--20210610新增*/
.lct {
    border: 1px solid #091938;
    border-radius: 2px;
    width: 300px;
}

.lct-head {
    background-color: #091938;
    padding: 5px;
}

.lct-head dt {
    font: 12px/14px "微软雅黑";
    color: #fff;
    font-weight: bold;
}

.lct-head dd {
    font: 10px/12px "微软雅黑";
    color: #ffd56a;
}

.lct-body {
    padding: 5px;
    background-color: #fff;
    opacity: 1 !important;
    z-index: 999;
}

.lct-body dl {
    background: url(~@/assets/imgs/lct-line.png) repeat-y left center;
}

.lct-body dl.nob {
    background: none;
}

.lct-body dt,
.lct-body dd {
    float: left;
    font-weight: bold;
}

.lct-body dt {
    background-color: #c0c3c9;
    width: 30px;
    height: 30px;
    border-radius: 100%;
    font: 14px/30px "微软雅黑";
    color: #fff;
    text-align: center;
    margin-right: 15px;
}

.lct-body dd p {
    width: 240px;
    font: 10px/12px "微软雅黑";
    color: #333;
}

//.pb30{padding-bottom: 10px;}
.cOrg {
    color: #e78432;
}

.cGreen {
    color: #4397a6;
}

.lct-icon li {
    font: 10px/12px "微软雅黑";
}

.info-panel-box {
    ::v-deep .el-tabs__item {
        margin-right: 0px;
    }

    ::v-deep .el-tabs--left .el-tabs__header.is-left {
        margin-right: 0px;
    }

    ::v-deep .el-tabs--left .el-tabs__item.is-left {
        background-color: #F9F9F9;
        color: $textColor3;
        //-webkit-box-shadow: -2px 0 3px 0 rgb(221 221 221 / 50%) !important;
        //box-shadow: -2px 0 3px 0 rgb(221 221 221 / 50%) !important;
        border: .01rem solid rgba(221, 221, 221, 0.5);
        border-bottom: none;
        padding: .2rem .4rem;
        margin-left: .2rem;

        &:hover,
        &.is-active {
            color: #333;
            background-color: #fff !important;
            -webkit-box-shadow: -2px 0 3px 0 rgba(221, 221, 221, 0.5) !important;
            box-shadow: -2px 0 3px 0 rgba(221, 221, 221, 0.5) !important;
        }

        &.is-active {
            //position: relative;
            //right: -.01rem;
            border-right: none;
        }

        &:last-child {
            border-bottom: .01rem solid rgba(221, 221, 221, 0.5);
        }
    }

    ::v-deep .el-tabs--left .el-tabs__active-bar.is-left,
    ::v-deep .el-tabs--left .el-tabs__nav-wrap.is-left::after {
        top: .02rem;
        left: .2rem;
        right: auto;
        background-color: $orange;
        width: .03rem;
    }

    ::v-deep .el-tabs__item {
        height: auto;
        line-height: normal;
        font-size: $fontSize_v1;
        font-weight: 500;
        color: #303133;
        position: relative;
    }

    ::v-deep .el-tabs--left .el-tabs__header.is-left {
        margin-top: .2rem;
    }

    ::v-deep .el-tabs__content {
        border: 1px solid rgba(221, 221, 221, 0.5);
        min-height: 4rem;
        -webkit-box-shadow: rgba(233, 234, 238, 0.7) 0px 0px 15px;
        -moz-box-shadow: rgba(233, 234, 238, 0.7) 0px 0px 15px;
        box-shadow: rgba(233, 234, 238, 0.7) 0px 0px 15px;
        margin: .2rem .2rem .2rem 0;
        padding: .2rem;
    }
}
// vxe分页样式
.vxe-pager--wrapper {
    text-align: center;
}
.vxe-pager.is--background .vxe-pager--jump-next:not(.is--disabled).is--active,
.vxe-pager.is--background .vxe-pager--jump-prev:not(.is--disabled).is--active,
.vxe-pager.is--background .vxe-pager--num-btn:not(.is--disabled).is--active,
.vxe-pager.is--perfect .vxe-pager--jump-next:not(.is--disabled).is--active,
.vxe-pager.is--perfect .vxe-pager--jump-prev:not(.is--disabled).is--active,
.vxe-pager.is--perfect .vxe-pager--num-btn:not(.is--disabled).is--active {
    background-color: $blue;
    border-color: $blue;
}
.vxe-pager .vxe-pager--jump-next:not(.is--disabled).is--active,
.vxe-pager .vxe-pager--jump-next:not(.is--disabled):focus,
.vxe-pager .vxe-pager--jump-prev:not(.is--disabled).is--active,
.vxe-pager .vxe-pager--jump-prev:not(.is--disabled):focus,
.vxe-pager .vxe-pager--next-btn:not(.is--disabled).is--active,
.vxe-pager .vxe-pager--next-btn:not(.is--disabled):focus,
.vxe-pager .vxe-pager--num-btn:not(.is--disabled).is--active,
.vxe-pager .vxe-pager--num-btn:not(.is--disabled):focus,
.vxe-pager .vxe-pager--prev-btn:not(.is--disabled).is--active,
.vxe-pager .vxe-pager--prev-btn:not(.is--disabled):focus {
    background: #417cdc;
}
.vxe-pager--num-btn is--active:hover {
    background: #417cdc;
}
